script tag 指 HTML 中的 <script> 标签(元素),用于在网页里嵌入或引用 JavaScript 等脚本代码,以实现交互、数据处理、加载外部脚本等功能。(在技术语境中最常用;在其他领域“script”还可指“剧本/脚本”。)
I added a script tag to load the app.
我添加了一个 <script> 标签来加载这个应用。
To improve performance, the site loads analytics with a script tag that uses the defer attribute.
为了提升性能,这个网站用带有 defer 属性的 <script> 标签来加载分析脚本。
/skrɪpt tæɡ/
script 源自拉丁语 scriptum(“写下来的东西”),引申为“脚本/程序脚本”。tag 原意为“标签”,在计算机与标记语言(如 HTML)中指“标记/标签”。合起来 script tag 即“用于脚本的(HTML)标签”。
<script> 引入与运行代码的基础用法 <script> 等常见 HTML 标签在页面中的角色与用法